import request from "@/utils/request";
/**
 *
 * @param {login} 登录接口
 */
export function login(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data
  });
}

/**
 * @param {userInfo} 获取用户信息
 */

export function userInfo() {
  return request({
    url: "/sys/profile",
    method: "post"
  });
}

/**
 * @param {userInfoPhoto} 获取员工照片
 */
export function userInfoPhoto(id) {
  return request({
    url: `/sys/user/${id}`
  });
}
